package team.ttorder.ttorder.dao;

import org.apache.ibatis.annotations.Select;

import team.ttorder.ttorder.model.User;
import team.ttorder.ttorder.mymapper.MyMapper;

public interface UserMapper extends MyMapper<User> {

	@Select("select id as id, name as name,password as password,phone as phone,role as role from user where phone = #{phone}")
	public User getUserByPhone(String phone);

}
